package com.unitd.base.module.master.pojo.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.unitd.base.frame.plugin.module.model.MybatisBaseEntity;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * 数据源关联关系信息表
 *
 * @author Hudan
 * @version 1.0
 * @filename CompanyDatasourcePO.java
 * @copyright www.unitd.com
 * @date 2020-07-10
 */ 
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@TableName(value = "shop_company_datasource")
public class CompanyDatasourcePO extends MybatisBaseEntity {

    /** 所属公司ID */
    @TableField("company_id")
    private Long companyId;
    /** 数据源ID */
    @TableField("db_id")
    private Long dbId;
    /** 数据源名称 */
    @TableField("db_name")
    private String dbName;
    /** 是否是该公司的默认数据源(0:否; 1:是) */
    @TableField("default_flag")
    private String defaultFlag;
}